<table>
	<tr>
		<td valign = 'top' colspan=3>
		<table class='contactpersonTable'>
			<tr>
				<?php echo $form['id']->render(); ?>
				<th><?php echo $form['last_name']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['last_name']->renderError() ?>
	        <?php echo $form['last_name'] ?>
	      </td>
	      <th><?php echo $form['first_name']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['first_name']->renderError() ?>
	        <?php echo $form['first_name'] ?>
	      </td>
	      <th><?php echo $form['middle_name']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['middle_name']->renderError() ?>
	        <?php echo $form['middle_name'] ?>
	      </td>
			</tr>
		
			<tr>
				<th><?php echo $form['contact']['position_title']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['contact']['position_title']->renderError() ?>
	        <?php echo $form['contact']['position_title'] ?>
	      </td>
				<th><?php echo $form['contact']['work_unit']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['contact']['work_unit']->renderError() ?>
	        <?php echo $form['contact']['work_unit'] ?>
	      </td>
			
			</tr>
			<tr>
				<th><?php echo $form['contact']['direct_line_modifier']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['contact']['direct_line_modifier']->renderError() ?>
	        <?php echo $form['contact']['direct_line_modifier'] ?>
	      </td>
				<th><?php echo $form['contact']['direct_line_number']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['contact']['direct_line_number']->renderError() ?>
	        <?php echo $form['contact']['direct_line_number'] ?>
	      </td>
				<th><?php echo $form['contact']['direct_line_extension']->renderLabel() ?>:</th>
	      <td>
	        <?php echo $form['contact']['direct_line_extension']->renderError() ?>
	        <?php echo $form['contact']['direct_line_extension'] ?>
		        <?php echo $form['contact']['id'] //contact id ?> 
	      </td>
			</tr>
			<tr>
				<td colspan =2 valign=top>
							<fieldset>
								<legend>Email</legend>
								
								<?php foreach($form['emails'] as $formEmail): ?>
						      <?php include_partial('email', array('form'=>$formEmail)); ?>
						    <?php endforeach; ?>
							</fieldset>
				
				</td>
				<td colspan=4>
						<fieldset>
							<legend>Social Media Accounts</legend>
						  <?php foreach($form['socialmediaaccounts'] as $formSMA): ?>
					      <?php include_partial('socialmediaaccountscontact', array('form'=>$formSMA)); ?>
					    <?php endforeach; ?>
						</fieldset>
					
					
				</td>	
			</tr>
		</table>			
		</td>
		<td colspan=2 valign=top>
				<fieldset>
					<legend>Phone</legend>
				  <?php foreach($form['phones'] as $formPhone): ?>
			      <?php include_partial('phonecontact', array('form'=>$formPhone)); ?>
			    <?php endforeach; ?>
				</fieldset>
		</td>	
	</tr>
</table>